package it.enricod.jcontextfree.engine;

import it.enricod.jcontextfree.engine.model.IProgram;

import java.io.File;
import java.io.FileNotFoundException;

import com.google.inject.ImplementedBy;

@ImplementedBy(ProgramLoader.class)
public interface IProgramLoader {

    /**
     * 
     * @param programFile
     * @return
     * @throws java.io.FileNotFoundException
     */
	public IProgram load(File programFile) throws FileNotFoundException ;

    /**
     * 
     * @param programAsText
     * @return
     */
	public IProgram load(String programAsText);
	
}
